//
//  PrimerCollectionViewCell.swift
//  StickyCollectionView
//
//  Created by Bogdan Matveev on 02/02/16.
//  Copyright © 2016 Bogdan Matveev. All rights reserved.
//

import UIKit

class PrimerCollectionViewCell: UICollectionViewCell {
    
    var lessonLabel: UILabel!
    
    var lesson: String? {
        didSet {
            lessonLabel.text = lesson
        }
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.backgroundColor = UIColor.purpleColor()
        lessonLabel = UILabel()
        lessonLabel.frame = CGRectMake(0, 0, ScreenWidth, 100)
        lessonLabel.contentMode = UIViewContentMode.ScaleAspectFill
        contentView.addSubview(lessonLabel)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
